<template>
  <div id="home">
    <h1 class="title">速<span></span>讯</h1>
    <h2 class="brief">拉近我们心灵的距离，感知爱与牵绊</h2>
    <div class="button_group">
      <router-link to="/home/register" class="button">注册</router-link>
      <router-link to="/home/login">登录</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'home'
}
</script>

<style lang="less">

#home {
  width: 100%;
  text-align: center;
  padding-top: 92px;
  background-image: url(/static/img/bg.png);
  background-size: cover;
  display: flex;
  flex-direction: column;

  .title {
    color: #0f88eb;
    font-size: 70px;
    font-weight: 500;
    text-align: center;
    span {
      width: 20px;
      display: inline-block;
    }
  }
  .brief {
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    text-align: center;
  }
  .button_group {
    font-size: 18px;
    text-align: center;
    margin-bottom: 25px;

    a {
      color: #555;
      text-decoration: none;
      opacity: .7;
      font-weight: 500;
    }
    a.button {
      margin-right: 20px;
    }
    .router-link-active {
      color: #0f88eb;
      opacity: 1;
      border-bottom: 2px solid;
      padding-bottom: 5px;
    }
  }
}
</style>